package com.mmall.order.controller;

import com.mmall.common.base.ServerResponse;
import com.mmall.feign.ProductFeignService;
import com.mmall.pojo.param.ProductPageParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author gg
 * @version OrderController.java, v 0.1 2019-05-06 17:23 gg
 */
@RestController
@RequestMapping("/order/")
public class OrderController {

    @Resource
    private ProductFeignService productFeignService;

    @GetMapping("testFeign")
    public ServerResponse testFeign() {
        ServerResponse page = productFeignService.page(new ProductPageParam());
        return page;
    }
}